﻿
using Dapper;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using YmtAuth.Domain;
using YmtAuth.Domain.Repository;
using YmtAuth.Repository.DapperRepository;

namespace YmtAuth.Repository.MSSQL
{
    public class UserOperationSyncRepository : _Repository<UserOperationSyncEntity>, IUserOperationSyncRepository
    {
        
        public UserOperationSyncRepository()
            : base(ConfigurationManager.ConnectionStrings["YmatouUserConnectionString"].ConnectionString
                , "useroperationsync"
                ,(str, siBindThreadContext) =>
                    new _GeneralDbContext(() => new ConnectionContext(new SqlConnection(str))).Context(
                        siBindThreadContext))
        {

        }


    }
}